home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
snip9_91.arc
/
STRTRIM.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-17
|
267b
|
16 lines
/*
** STRTRIM.C - trims trailing spaces off of a string
*/
#include <string.h>
char *strtrim(char *str)
{
register int i;
for (i = strlen(str) - 1; str[i] == ' ' && i >= 0; i--)
;
str[i+1]='\0';
return(str);
}